package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DetectresultMapper;
import com.ruoyi.system.domain.Detectresult;
import com.ruoyi.system.service.IDetectresultService;

/**
 * 检测报告Service业务层处理
 * 
 * @author gzhuangwei
 * @date 2022-09-17
 */
@Service
public class DetectresultServiceImpl implements IDetectresultService 
{
    @Autowired
    private DetectresultMapper detectresultMapper;

    /**
     * 查询检测报告
     * 
     * @param id 检测报告主键
     * @return 检测报告
     */
    @Override
    public Detectresult selectDetectresultById(Long id)
    {
        return detectresultMapper.selectDetectresultById(id);
    }

    /**
     * 查询检测报告列表
     * 
     * @param detectresult 检测报告
     * @return 检测报告
     */
    @Override
    public List<Detectresult> selectDetectresultList(Detectresult detectresult)
    {
        return detectresultMapper.selectDetectresultList(detectresult);
    }

    /**
     * 新增检测报告
     * 
     * @param detectresult 检测报告
     * @return 结果
     */
    @Override
    public int insertDetectresult(Detectresult detectresult)
    {
        return detectresultMapper.insertDetectresult(detectresult);
    }

    /**
     * 修改检测报告
     * 
     * @param detectresult 检测报告
     * @return 结果
     */
    @Override
    public int updateDetectresult(Detectresult detectresult)
    {
        return detectresultMapper.updateDetectresult(detectresult);
    }

    /**
     * 批量删除检测报告
     * 
     * @param ids 需要删除的检测报告主键
     * @return 结果
     */
    @Override
    public int deleteDetectresultByIds(Long[] ids)
    {
        return detectresultMapper.deleteDetectresultByIds(ids);
    }

    /**
     * 删除检测报告信息
     * 
     * @param id 检测报告主键
     * @return 结果
     */
    @Override
    public int deleteDetectresultById(Long id)
    {
        return detectresultMapper.deleteDetectresultById(id);
    }
}
